import 'package:flutter/cupertino.dart';
import 'package:get/get.dart';

import 'sign_up_step_state.dart';

class SignUpStepLogic extends GetxController {
  final state = SignUpStepState();

  int currentPage = 0;

  PageController pageController = new PageController(
    initialPage: 0,
    keepPage: true
  );

  @override
  void onReady() {
    // TODO: implement onReady
    super.onReady();
    state.userRegisterRequestEntity.username = Get.arguments['username'];
    state.userRegisterRequestEntity.password = Get.arguments['password'];
    print(state.userRegisterRequestEntity.username);
    print(state.userRegisterRequestEntity.password);
  }

  @override
  void onClose() {
    // TODO: implement onClose
    super.onClose();
    pageController.dispose();
  }


}
